package com.linjinp.study.算法;

import java.util.Random;

public class MakeArray {

    public static int[] makeArray(int length) {
        // new 一个随机数发生器
        Random r = new Random();
        int[] result = new int[length];
        for(int i=0;i<length;i++){
            //用随机数填充数组
            result[i] =  r.nextInt(length*3);
        }
        return result;

    }
}
